From: Anthony PERARD Date: Wed, 17 Aug 2022 15:21:06 +0000 (+0100) Subject: build: Fix missing MAKEFLAGS --no-print-directory X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~291 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f2beaf876dce590ee9937b79cd3498f2fe9f661c;p=xen.git build: Fix missing MAKEFLAGS --no-print-directory While we already have "--no-print-directory" added to the make flags in some cases, there's one case where the flags is missing, when doing an out-of-tree build with O=, e.g. cd xen; make O=build Without it, we just have loads of "Entering directory" and "Leaving directory" with the same directory. The comment and location in the Makefile are copied from Linux. Reported-by: Andrew Cooper Signed-off-by: Anthony PERARD Acked-by: Andrew Cooper Acked-by: Jan Beulich --- diff --git a/xen/Makefile b/xen/Makefile index 69b4dc960f..106aff6a07 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -186,6 +186,11 @@ endif # root-make-done # We process the rest of the Makefile if this is the final invocation of make ifeq ($(need-sub-make),) +# Do not print "Entering directory ...", +# but we want to display it when entering to the output directory +# so that IDEs/editors are able to understand relative filenames. +MAKEFLAGS += --no-print-directory + ifeq ($(abs_srctree),$(abs_objtree)) # building in the source tree srctree := .